<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String	id = request.getParameter("id") == null ? "" : request.getParameter("id");
%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="/room/css/all.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>아이디체크</title>
<script type="text/javascript" src="/room/script/jquery-1.3.2.min.js"></script>
<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
</style>
<script type="text/javascript">
<!--
	function getId()
	{//입력한 값 적용
		var frm = document.frm;	
		opener.document.frm.hiddenid.value	= frm.id.value;
		opener.document.frm.id.value		= frm.id.value;
	}
	function chechk(){
		var frm = document.frm;
		if($("#id").val() == "" ){
			alert("ID을 입력하세요.");
			return false;
		}else if(!isEng($("#id").val())){
			alert("영문숫자만 가능합니다.");
			return false;
		}else{
			frm.target="hidfrm";
			return true;
		}
		
	}
//-->
</script>
</head>

<!--W:320px * H:187px-->

<body>
<form name="frm" id="frm" action="iddbx.jsp" method="post" >
<div style="width:320px; height:185px; border:1px solid #dddddd;">
 <table width="100%" height="30" border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td class="pl10" bgcolor="#3fb1b8"><span style="color:#fff;"><strong>아이디 중복확인</strong></span>
</td>
    <td bgcolor="#3fb1b8" width="23"><a href="#" onclick="window.close();"><img src="/room/img/img_x.gif" width="22" height="23" /></a></td>
  </tr>
 </table>
 <div class="pt25 pb20" style="text-align:center; line-height:20px;">
 아이디 <span class="c_org"><strong><%=id %></strong></span>
<%if(!id.equals("")){ %>
 은 사용할 수 있습니다.
<%}else{ %>
 은 사용할 수 없습니다.<br />
다른 아이디를 검색하시기 바랍니다.
<%} %>
<br />
</div>
<div class="pt15 pb30  pl10" >
 <table align="center" width="320" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><input type="text" name="id" id="id" value="<%=id %>" style="width:100px;ime-mode:inactive;" /></td>
    <td>
    <!-- a href="#" onclick="goCheck();"><img src="/room/img/btn_2ok.gif" width="71" height="26" /></a -->
	<input type="submit" value="중복확인" id="checkBtn" style="width:80px;"/>
	<%if(!id.equals("")){ %>
	<input type="button" value="사용하기" id="idBtn" onclick="getId();window.close();" style="width:80px;"/>
	<%} %>	    
    </td>
  </tr>
</table>
</div>
</div>
</form>
<iframe name="hidfrm"></iframe>
</body>
</html>